<div class="message">
  <div style="height: 30px;padding-right: 20px;">
    <go-back></go-back>
  </div>
  <div class="main">
    <div class="main-content">
      <div class="search-info">
        <div class="container-header fs-16">
          <span>消息中心</span>
          <div class="pa-fl fr message-operate">
            <div class="pa-operate-fr fs-theme-color"
              ng-click="vm.$setAllRead(vm)">
              <i class="iconfont icon-yidu icon-middle"></i>
              <span>全部设为已读</span>
            </div>
            <div class="pa-operate-fr fs-theme-color"
              ng-click="vm.$deleteAllRead(vm)">
              <i class="iconfont icon-shanchu icon-middle"></i>
              <span>删除全部已读</span>
            </div>
            <div class="pa-operate-fr fs-theme-color"
              ng-click="vm.$delRead(vm)">
              <i class="iconfont icon-shanchu icon-middle"></i>
              <span>删除</span>
            </div>
          </div>
        </div>
      </div>
      <pa-table>
        <table class="pa-table">
          <thead>
            <tr>
              <th class="checkbox-radius">
                <input type="checkbox"
                  ng-model="vm.toggleAllFlag"
                  ng-click="vm.$toggleAll()">
              </th>
              <th>类型</th>
              <th>内容</th>
              <th class="sorting"
                ng-class="{'sorting-desc': vm.mapParams.sortType == 2, 'sorting-asc': vm.mapParams.sortType == 1}"
                ng-click="vm.$toggleOrder('created_time')">
                时间
              </th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="item in vm.msgListData"
              ng-class="{'fs-gray': item.statusCode == 2}">
              <td>
                <input type="checkbox"
                  ng-model="item.checked"
                  ng-change="vm.$isChange()">
              </td>
              <td>
                <i class="iconfont icon-middle" ng-class="{'icon-chapingyujingshezhi warning': item.typeCode == 1, 'icon-iconfontzhizuobiaozhun41 remind': item.typeCode == 2}"></i>{{vm.$getMsgType(item.typeCode)}}</td>
              <td ng-click="vm.$goPage(item)">{{item.content}}</td>
              <td>{{item.createdTime | date:'yyyy-MM-dd hh:mm'}}</td>
            </tr>
          </tbody>
        </table>
      </pa-table>
    </div>
  </div>
</div>